<?php

if (isset($brands) and ($brands)) {
    //pr($brands);
    //exit;
    echo $this->Form->input('Product.brand_id', array('type' => 'select', 'options' => $brands,
        'class' => 'ProductAttribute mws-textinput', 'empty' => false, 'label' => false)
    );
} else {
    echo '
			<select name="data[Product][brand_id]" id="ProductBrandId">
				<option>--Selec---</option>
				<option value="">No Brands</option>
			</select>
	';
}
?>
